﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMaster.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    POV维护
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="section-header">
        <div class="title">
            <img src="<%=Url.Content("~/Content/images/ico-catalog.png")%>" alt="" />
            POV维护
        </div>
        <div class="options">
            <input type="submit" class="t-button" value="保存" name="save" />
            <input type="submit" class="t-button" value="保存并继续添加" name="save-continue" />
            <%=Html.ActionLink("返回", "Index", "SubKA", null, new { @class = "t-button" })%>
        </div>
    </div>
    <table class="adminContent">
        <tr>
            <td class="adminTitle">
                名称(必填):
            </td>
            <td class="adminData">
                <%=Html.Editor("Name") %>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                地址(必填):
            </td>
            <td class="adminData">
                <%=Html.Editor("Name") %>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                联系方式(必填):
            </td>
            <td class="adminData">
                <%=Html.Editor("Name") %>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                服务区域(必填):
            </td>
            <td class="adminData">
                <%=Html.Editor("Name") %>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                库存产品:
            </td>
            <td class="adminData">
                <%= Html.Telerik().Grid<Microhard.Protal.Models.ProductModel>()
        .Name("AttachmentDetails")
        .DataKeys(keys =>
        {
            keys.Add(p => p.ProductID).RouteKey("ProductID");
        })
                            //.DataBinding(dataBinding =>
                            //{
                            //    dataBinding.Ajax().Select("_List", "Upload")
                            //     .Delete("Remove", "Upload", new { PKID = Model.ProjectID });
                            //})
        .ClientEvents(events => events.OnDataBinding("AtrDetailGridDataBinding"))
        .Columns(columns =>
        {
            columns.Bound(p => p.Name).Width(210).Title("产品名称");
            columns.Bound(p => p.Decription).Width(210).Title("描述");
            columns.Bound(p => p.DisplayCSS).Width(210).Title("库存数量");
            //columns.Command(commands =>
            //{
            //    commands.Delete().ButtonType(GridButtonType.Image);
            //}).Width(180).Title("操作");
        })
        .Scrollable()
        .Sortable()
                %>
            </td>
        </tr>
    </table>
</asp:Content>
